package com.yunhe.policyfulfillment.policyful.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Banner
 * @Description:
 * @author: GongDaCheng
 * @Date: 15:26 2021/7/21
 */
@ApiModel(value = "Banner", description = "Banner")
@Data
public class Banner implements Serializable {

    private static final long serialVersionUID = 3370338342796362238L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "跳转页面")
    private String link;

    @ApiModelProperty(value = "发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;

    @ApiModelProperty(value = "发布人")
    private Long publishPerson;

    @ApiModelProperty("发布人名称")
    private String publishPersonName;

    @ApiModelProperty(value = "更新人")
    private Long updatePerson;

    @ApiModelProperty("更新人名称")
    private String updatePersonName;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "是否上线")
    private String online;

    @ApiModelProperty(value = "是否置顶")
    private String top = "02";

    @ApiModelProperty(value = "是否删除")
    private String isDelete = "0";
}
